.portraitStylePanel {
  flex: 1;
  display: flex;
  width: 100%;
  background-color: #f9fafb;
  flex-direction: column;
  height: 100vh;
  position: relative;
  overflow-x: hidden;
  min-height: 0;

  .portraitStyleHeader {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding: 16px;

    .portraitStyleHeaderRight {
      display: flex;
      align-items: center;
    }
  }

  .portraitStyleUpload {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    margin: 0 16px; // 添加左右边距

    background-color: #fff;
    border-radius: 8px; // 添加圆角

    .uploadTitle {
      display: inline-block;
      margin-bottom: 8px;
      color: rgba(80, 80, 80, 1);
      font-weight: bold;
      font-size: 13px;
    }

    .uploadExample {
      display: flex;
      flex-direction: column;

      .exampleImages {
        display: flex;
        justify-content: flex-start;
        /* 靠左对齐 */
        gap: 10px;
      }

      .exampleImage {
        width: 50px;
        /* 根据需要调整宽度 */
        height: 50px;
        /* 根据需要调整高度 */
        border-radius: 10px;
        object-fit: cover;
        /* 确保图片不变形 */
      }
    }
  }


  .portraitStyleOptions {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    padding-bottom: 75px;
    height: calc(100% - 65px);
    min-height: 0;

    .radioGroup {
      flex: 0 0 auto;
      display: flex;
      flex-direction: row;
      align-items: center;
      margin-bottom: 6px;
    }

    .optionsContainer {
      flex: 1;
      overflow-y: auto;
      min-height: 0;
      background-color: #fff; // 添加白色背景
      border-radius: 8px; // 可选：添加圆角
      padding: 4px 0px 20px 0px;
      margin: 8px 0px; // 添加左右边距
      margin-bottom: 0px;

    }

    .styleOptions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 4px;
      padding: 0 6px;
    }

    .styleItem {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      border-radius: 8px;
      overflow: hidden;
      width: calc((100% - 16px) / 3);
      height: 130px;
      text-align: center;
      color: #fff;
      cursor: pointer;
      transition: transform 0.2s;
      margin: 0;
      box-sizing: border-box;
      border: 1.5px solid transparent;

      &.selected {
        border-color: #0fbaad;
        box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
      }

      img {
        width: 100%;
        height: 95px;
        border-radius: 8px;
        object-fit: cover;
        border-radius: 8px;
        background-color: #fff;
        margin-bottom: 4px; // 添加底部间距

      }

      p {
        font-size: 12px;
        font-weight: bold;
        color: #333;
        margin: 0;
        padding: 2px 0;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
      }
    }

  }


  .referenceUpload {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    padding: 0px 0px;
    margin-top: 10px;

    .uploadExample {
      display: flex;
      flex-direction: column;

      .referenceExampleImages {
        display: flex;
        justify-content: flex-start;
        gap: 10px;
      }

      .referenceExampleImage {
        width: 50px;
        /* 根据需要调整宽度 */
        height: 50px;
        /* 根据需要调整高度 */
        border-radius: 10px;
        object-fit: cover;
        /* 确保图片不变形 */
      }
    }
  }


  .referenceUpload {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    padding: 0px 16px;

    .uploadExample {
      display: flex;
      flex-direction: column;

      .exampleImages {
        display: flex;
        justify-content: flex-start;
        /* 靠左对齐 */
        gap: 10px;
      }

      .exampleImage {
        width: 50px;
        /* 根据需要调整宽度 */
        height: 50px;
        /* 根据需要调整高度 */
        border-radius: 10px;
        object-fit: cover;
        /* 确保图片不变形 */
      }
    }
  }



  .portraitStyleFooter {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background-color: #f9fafb;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    padding: 10px 0; // 修改水平内边距为 0

    .generateButton {
      width: 95%;
      height: 40px;
      background-color: #0fbaad;
      border-radius: 8px;
      color: white;
      font-size: 14px;
      font-weight: bold;
      display: flex;
      justify-content: center;
      align-items: center;

      &:hover {
        background-color: #0fbaad;
      }
    }
  }

  //修改 Radio.Group 按钮的选中颜色，需要覆盖 antd 的默认样式
  :global {
    .ant-radio-button-wrapper {
      background: #fff;
      color: #333;
      border-color: #d9d9d9;

      &-checked:not(.ant-radio-button-wrapper-disabled) {
        background: #0c0c0c !important;
        border-color: #0c0c0c !important;
        color: white !important;

        &:hover {
          color: white !important;
          background: #0c0c0c !important;
        }
      }

      // 移除 hover 效果
      &:hover {
        color: #333 !important;
      }
    }
  }

}